<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/common/include/page.jsp"%>
<div class="pageHeader">
	<form onsubmit="return navTabSearch(this);" action="${rootpath }/back/users/usersList.html"
		method="post">
		<div class="searchBar">
			<table class="searchContent">
				<tr>
					<td>
						关键字：<input type="text" name="keyword" value="${param.keyword }" placeholder="请输入关键字"/>
						状态:
						<select name="status">
							<option value="">请选择</option>
							<option value="1" ${param.status == '1' ? 'selected' : '' }>启用</option>
							<option value="0" ${param.status == '0' ? 'selected' : '' }>禁用</option>
						</select>
						更新时间：
						<input type="text" name="st" value="${param.st }" readonly="true" onClick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})" class="Wdate"/>
						-->
						<input type="text" name="ed" value="${param.ed }" readonly="true" onClick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})" class="Wdate"/>
					</td>
				</tr>
			</table>
			<div class="subBar">
				<ul>
					<li>
						<div class="buttonActive">
							<div class="buttonContent">
								<button type="submit">检索</button>
							</div>
						</div>
					</li>
					<li>
						<a class="button" href="demo_page6.html" target="dialog"
						mask="true" title="查询框">
							<span>高级检索</span></a>
					</li>
				</ul>
			</div>
		</div>
	</form>
</div>
<div class="pageContent">
	<div class="panelBar">
		<ul class="toolBar">
			<!-- <li><a class="add" href="demo_page4.html" target="navTab"><span>添加</span></a></li> -->
			<li>
				<a class="edit" href="${rootpath }/back/users/usersUpdate.html?uid={sid_user}"
					target="navTab" rel="usersInfo"><span>查看</span></a>
			</li>
			<li>
				<a class="edit" href="${rootpath }/back/users/usersUpdate.html?uid={sid_user}&operType=update"
					target="navTab" rel="usersUpdate"><span>修改</span></a>
			</li>
			<!-- <li>
				<a class="delete"
				href="demo/common/ajaxDone.html?uid={sid_user}" target="ajaxTodo"
				title="确定要删除吗?"><span>删除</span></a>
			</li> -->
			<!-- <li class="line">line</li>
			<li>
				<a class="icon" href="demo/common/dwz-team.xls"
				target="dwzExport" targetType="navTab" title="实要导出这些记录吗?"><span>导出EXCEL</span></a></li> -->
		</ul>
	</div>
	<table class="table" width="100%" layoutH="138">
		<thead>
			<tr>
				<th width="40"><input type="checkbox" id="selectAll"></th>
				<th width="40">序号</th>
				<th width="40">Id</th>
				<th width="100">邮箱</th>
				<th width="100">昵称</th>
				<th width="100">手机</th>
				<th width="100">qq</th>
				<th width="50">登陆次数</th>
				<th width="100">状态</th>
				<th width="80">创建时间</th>
				<th width="80">更新时间</th>
				<th width="80">上次登陆时间</th>
			</tr>
		</thead>
		<tbody>
			<c:forEach items="${requestScope.usersList }" var="users" varStatus="stat">
				<tr target="sid_user" rel="${users.id }">
					<td><input type="checkbox" name="ids" value="${users.id }"></td>
					<td>${stat.count }</td>
					<td>${users.id }</td>
					<td>${users.email }</td>
					<td>${users.nickName }</td>
					<td>${users.phone }</td>
					<td>${users.qq }</td>
					<td>${users.loginCount }</td>
					<td>${users.statusStr }</td>
					<td><fmt:formatDate value="${users.createTime }" pattern="yyyy-MM-dd HH:mm:ss"/></td>
					<td><fmt:formatDate value="${users.updateTime }" pattern="yyyy-MM-dd HH:mm:ss"/></td>
					<td><fmt:formatDate value="${users.lastLoginTime }" pattern="yyyy-MM-dd HH:mm:ss"/></td>
				</tr>
			</c:forEach>
		</tbody>
	</table>
	
	<form id="usersListPageForm" onsubmit="return navTabSearch(this);" action="${rootpath }/back/users/usersList.html"
		method="post">
		
		<!-- 设置一些参数 -->
		<input type="hidden" name="keyword" value="${param.keyword }">
		<input type="hidden" name="status" value="${param.status }">
		<input type="hidden" name="st" value="${param.st }">
		<input type="hidden" name="ed" value="${param.ed }">
		
		<div class="panelBar">
			<div class="pages">
				共${requestScope.pageInfoUtil.totalPage }页
				共${requestScope.pageInfoUtil.totalRecord }条
				<a href="#" class="button" onclick="return pageForm('usersListPageForm','currentPage','1','pageSize','${requestScope.pageInfoUtil.pageSize }');"><span>首页</span></a>
				<a href="#" class="button" onclick="return pageForm('usersListPageForm','currentPage','${requestScope.pageInfoUtil.prePage }','pageSize','${requestScope.pageInfoUtil.pageSize }');"><span>上一页</span></a>
				<a href="#" class="button" onclick="return pageForm('usersListPageForm','currentPage','${requestScope.pageInfoUtil.nextPage }','pageSize','${requestScope.pageInfoUtil.pageSize }');"><span>下一页</span></a>
				<a href="#" class="button" onclick="return pageForm('usersListPageForm','currentPage','${requestScope.pageInfoUtil.totalPage }','pageSize','${requestScope.pageInfoUtil.pageSize }');"><span>尾页</span></a>
				第<input type="text" id="currentPage" name="currentPage" value="${requestScope.pageInfoUtil.currentPage }" size="5" maxlength="5"/>页
				每页<input type="text" id="pageSize" name="pageSize" value="${requestScope.pageInfoUtil.pageSize }" size="5" maxlength="5"/>条
				<input type="submit" value="GO">
			</div>
		</div>
	</form>
</div>
